# 指定CMake的最小版本要求
cmake_minimum_required(VERSION 3.10)

# 设定项目名和语言
project(GPIO_control_api VERSION 1.0)

# 设置C++标准
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 17)
# set(CMAKE_CXX_STANDARD_REQUIRED True)

find_package(CURL REQUIRED)

include_directories(./model)

aux_source_directory(./model dir_src)

# 添加执行文件
add_executable(run_led led_run.cpp ${dir_src})
add_executable(run_switch switch_run.cpp ${dir_src})

target_link_libraries(run_led CURL::libcurl)
target_link_libraries(run_switch CURL::libcurl)
